
<h1><span class="yiyi-st" id="yiyi-12">numpy.core.defchararray.not_equal</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.core.defchararray.not_equal.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.core.defchararray.not_equal.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="function">
<dt id="numpy.core.defchararray.not_equal"><span class="yiyi-st" id="yiyi-13"> <code class="descclassname">numpy.core.defchararray.</code><code class="descname">not_equal</code><span class="sig-paren">(</span><em>x1</em>, <em>x2</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/core/defchararray.py#L122-L144"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-14">元素方式返回（x1！= x2）。</span></p>
<p><span class="yiyi-st" id="yiyi-15">与<a class="reference internal" href="numpy.not_equal.html#numpy.not_equal" title="numpy.not_equal"><code class="xref py py-obj docutils literal"><span class="pre">numpy.not_equal</span></code></a>不同，通过首先从字符串末尾剥除空格字符来执行此比较。</span><span class="yiyi-st" id="yiyi-16">此行为用于与numarray的向后兼容性。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-17">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-18"><strong>x1，x2</strong>：array_like的str或unicode</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-19">输入相同形状的数组。</span></p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name"><span class="yiyi-st" id="yiyi-20">返回：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-21"><strong>out</strong>：ndarray或bool</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-22">输出bool的数组，如果x1和x2是标量，则为单个bool。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-23">也可以看看</span></p>
<p class="last"><span class="yiyi-st" id="yiyi-24"><a class="reference internal" href="numpy.core.defchararray.equal.html#numpy.core.defchararray.equal" title="numpy.core.defchararray.equal"><code class="xref py py-obj docutils literal"><span class="pre">equal</span></code></a>，<a class="reference internal" href="numpy.core.defchararray.greater_equal.html#numpy.core.defchararray.greater_equal" title="numpy.core.defchararray.greater_equal"><code class="xref py py-obj docutils literal"><span class="pre">greater_equal</span></code></a>，<a class="reference internal" href="numpy.core.defchararray.less_equal.html#numpy.core.defchararray.less_equal" title="numpy.core.defchararray.less_equal"><code class="xref py py-obj docutils literal"><span class="pre">less_equal</span></code></a>，<a class="reference internal" href="numpy.core.defchararray.greater.html#numpy.core.defchararray.greater" title="numpy.core.defchararray.greater"><code class="xref py py-obj docutils literal"><span class="pre">greater</span></code></a>，<a class="reference internal" href="numpy.core.defchararray.less.html#numpy.core.defchararray.less" title="numpy.core.defchararray.less"><code class="xref py py-obj docutils literal"><span class="pre">less</span></code></a></span></p>
</div>
</dd></dl>
